# Contributor: Zach DeCook <zachdecook@librem.one>
# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=hyprland-protocols
pkgver=0.2
pkgrel=1
pkgdesc="Wayland protocol extensions for Hyprland"
url="https://github.com/hyprwm/hyprland-protocols"
arch="noarch"
license="BSD-3-Clause"
source="https://github.com/hyprwm/hyprland-protocols/archive/v0.2/hyprland-protocols-v0.2.tar.gz"
makedepends="meson"
subpackages="$pkgname-doc"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}


sha512sums="
cd1f9309a69236d6fd2ffc1a09f5f8a1196f357367779c08f30aeaaca7646be364c40fa8c207751012873085d24581fe7b7252c825e89958c20adfb48b029274  hyprland-protocols-v0.2.tar.gz
"
